function runner(gen) {
    return new Promise((resolve, reject) => {
    })
}

function isGen(gen) {
    return Object.prototype.toString.call(g1).includes('GeneratorFunction')
}

function* g1() {
    console.dir('g1')
}

let res = runner(g1)
console.dir(res)
